package com.algo.http;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class RequestProcessorFactory {
	
	private static Map<String, RequestProcessor> processorMap = new ConcurrentHashMap<String, RequestProcessor>();
	
	static {
		processorMap.put("/getUser", new GetUserRequestProcessor());
		processorMap.put("/getProduct", new GetProductRequestProcessor());
	}

	public static RequestProcessor get(String uri) {
		return processorMap.get(uri);
	}
	
}
